package com.bootdo.system.service;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.bootdo.system.domain.RoleDO;

@Service
public interface RoleService {

	RoleDO get(Long id);
	
	RoleDO getByUserId(Long userId);

	List<RoleDO> list();
	
	List<RoleDO> listByWeight();

	int save(RoleDO role);

	int update(RoleDO role);

	int remove(Long id);

	List<RoleDO> list(Long userId);

	int batchremove(Long[] ids);

	int userUsed(Long id);

	int batchUpdate(List<RoleDO> list);

	int getRoleCount(Long userId);

	int getCountByRoleName(String roleName);

	List<Map<String, Object>> getRole(Map<String, Object> map);
}
